console.log(111);
import './css/index.css'
import axios from 'axios'
axios.get('/list').then(res=>{
    console.log(res.data);
    render(res.data);
})
function render(arr){
    box.innerHTML=arr.map((item) => {
        return `
        <ul>
            <li>
                <img src="${item.img}" alt="">
                <span>${item.title}</span>
            </li>
        </ul>
        `
    }).join('')
}